import request from '@/utils/request'
// 获取表单信息
export const getIndexApi = (params) => {
  return request({
    url: '/house/index',
    method: 'get',
    params
  })
}
// 获取表单信息
export const getIndexInfoApi = (id) => {
  return request({
    url: '/house/index/' + id,
    method: 'get',
  })
}
// 修改表单信息
export const editIndexApi = (data) => {
  return request({
    url: '/house/index/' + data.id,
    method: 'put',
    data
  })
}
// 增加表单信息
export const addIndexApi = (data) => {
  return request({
    url: '/house/index',
    method: 'post',
    data
  })
}
// 删除表单信息
export const delIndexApi = (id) => {
  return request({
    url: '/house/index/' + id,
    method: 'delete',
  })
}
